﻿using Microsoft.AspNet.SignalR;
using Microsoft.AspNet.SignalR.Hubs;
using System;

namespace Back_end.Hubs
{
    [HubName("messageHub")]
	public class BackEndMessageHub : Hub 
	{
		public void Send( string message)
		{
			Clients.All.newMessage(DateTime.Now.ToString("HH:MM:ss") + " - " + Context.User.Identity.Name + "说：" + message);
		}
	}
}